package com.lee.lease.web.app.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lee.lease.model.entity.LeaseAgreement;
import com.lee.lease.web.app.vo.agreement.AgreementDetailVo;
import com.lee.lease.web.app.vo.agreement.AgreementItemVo;

import java.util.List;

/**
* @author liubo
* @description 针对表【lease_agreement(租约信息表)】的数据库操作Service
* @createDate 2023-07-26 11:12:39
*/
public interface LeaseAgreementService extends IService<LeaseAgreement> {

    /**
     * 根据手机号查询租约列表
     * @param phone 用户手机号
     * @return
     */
    List<AgreementItemVo> getListItem(String phone);

    /**
     *
     * @param id 租约id
     * @return
     */
    AgreementDetailVo getDetailById(Integer id);
}
